package com.shensi.adminCollect.mapper.station;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shensi.adminCollect.domain.station.TeamManagement;
import com.shensi.adminCollect.domain.station.dto.TeamManagementDto;
import com.shensi.adminCollect.domain.station.vo.TeamManagementVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author PC
 * @description 针对表【team_management(团队管理表)】的数据库操作Mapper
 * @createDate 2023-08-29 16:32:10
 * @Entity generator.domain.TeamManagement
 */
@Repository
public interface TeamManagementMapper extends BaseMapper<TeamManagement> {

    void deleteByTeamId(@Param("id") Long id, @Param("date")String date);

    List<TeamManagementVo> selectTeamList(TeamManagementDto teamManagementDto);

    String selectByTeamIdOrLeaderId(@Param("leaderId")Long leaderId, @Param("teamId")Long teamId);

    TeamManagementVo selectByLeader(Long id);

    TeamManagementVo repeat(String teamName);

    List<String> selectMembersByDistrict(String district);
//    List<Long> getEnterpriseByDistrict(String district);
}




